﻿using System.Web.UI;

namespace OpenWaves.Web.Controls
{
    public class GoogleMapInfoWindowContainer<T> : Control, IDataItemContainer
    {
        public T Item
        {
            get { return (T) this.DataItem; }
        }

        public object DataItem { get; private set; }

        public int DataItemIndex { get; private set; }

        public int DisplayIndex { get; private set; }

        public GoogleMapInfoWindowContainer(object dataItem)
        {
            DataItem = dataItem;
        }
    }
}